#include <myhead.h>
int main(int argc, const char *argv[])
{
	//将argv[1]拷贝到argv[2]
	FILE *p=fopen(argv[1],"r");
	FILE *l=fopen(argv[2],"w");
	if(NULL==p||NULL==l)
	{
		printf("打开文件失败\n");
		return -1;
	}
	int a=0;
	while((a=fgetc(p))!=EOF)
	{
		fputc(a,l);
		printf("%c",a);
	}
	fclose(p);
	fclose(l);
	return 0;
}
